﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUCIndexShare.ascx.cs"
    Inherits="NJL.WebUsers.Controls.WUCIndexShare" %>
<%@ Import Namespace="Royalsoft.Common" %>
<div>
    <div class="m_top_10"></div>
    <div class="leftPick f_left">
        <div class="box cleanFlex">
            <div class="title">
                <h2 class="notice f_left">
                    有些好玩的您可以在这里抢先体验</h2>
            </div>
            <div class="cont" style="width: 710px; _width: 720px; margin: 0 auto; padding-left: 20px;
                _padding-left: 0px; overflow: hidden;">
                <ul class="imglist">
                    <%
                        //Random rondom = new Random();
                        //for (int i = 0; i < LIST_SERVICE.Count; i++)
                        //{
                        //    int j = rondom.Next(0, LIST_SERVICE.Count);
                        //    if (!LIST_Company.Contains(LIST_SERVICE[j]))
                        //    {
                        //        LIST_Company.Add(LIST_SERVICE[j]);
                        //    }
                        //}
                        //if (LIST_Company.Count >= 8)
                        //{
                        for (int i = 0; i < LIST_SERVICE.Count; i++)
                        {
                    %>
                    <li style="width: 155px; height: 140px;"><a target="_blank" title="<%=LIST_SERVICE[i].ACTIVE_NAME %>"
                        href="/shangpu/<%=LIST_SERVICE[i].NJL_COMPANY_ID %>-huodong-<%=LIST_SERVICE[i].ID %>.html">
                        <img width="147px" height="105px" style="display: block;" alt="<%=LIST_SERVICE[i].ACTIVE_NAME %>"
                            src="<%=LIST_SERVICE[i].IMAGE_CODE!=""?GetImageUrl(LIST_SERVICE[i].IMAGE_CODE,"1"):"/images/nopic.jpg" %>"
                            class="picBor" /></a>
                        <p style="margin-top: 3px;">
                            <span class="f_right"><a target="_blank" href="/shangpu/<%=LIST_SERVICE[i].NJL_COMPANY_ID %>-huodong-<%=LIST_SERVICE[i].ID %>.html" class="joinlink" title="我要参与"></a></span><a target="_blank"
                                class="font14" title="<%=LIST_SERVICE[i].ACTIVE_NAME %>" href="/shangpu/<%=LIST_SERVICE[i].NJL_COMPANY_ID %>-huodong-<%=LIST_SERVICE[i].ID %>.html">
                                <%if (LIST_SERVICE[i].ACTIVE_NAME.Length > 6) Response.Write(LIST_SERVICE[i].ACTIVE_NAME.Substring(0, 6) + "..."); else Response.Write(LIST_SERVICE[i].ACTIVE_NAME); %>
                            </a>
                        </p>
                    </li>
                    <%
                        }
                    %>
                    <%--                    <%
}
                        }
                        else
                        {
                            for (int i = 0; i < LIST_Company.Count; i++)
                            {
                    %>
                    <li style="width: 155px; height: 133px;"><a target="_blank" title="<%=LIST_Company[i].ACTIVE_NAME %>"
                        href="/shangpu/<%=LIST_Company[i].NJL_COMPANY_ID %>-huodong-<%=LIST_Company[i].ID %>.html">
                        <img width="147px" height="105px" style="display: block;" alt="<%=LIST_Company[i].ACTIVE_NAME %>"
                            src="<%=LIST_Company[i].IMAGE_CODE!=""?GetImageUrl(LIST_Company[i].IMAGE_CODE,"1"):"/images/nopic.jpg" %>"
                            class="picBor" /></a>
                        <p>
                            <a target="_blank" title="<%=LIST_Company[i].ACTIVE_NAME %>" href="/shangpu/<%=LIST_Company[i].NJL_COMPANY_ID %>-huodong-<%=LIST_Company[i].ID %>.html">
                                <%if (LIST_Company[i].ACTIVE_NAME.Length > 12) Response.Write(LIST_Company[i].ACTIVE_NAME.Substring(0, 12) + "..."); else Response.Write(LIST_Company[i].ACTIVE_NAME); %></a></p>
                    </li>
                    <%
}
                        }
                    %>--%>
                </ul>
            </div>
            <div class="cleanFlex" style="height:11px;">
            </div>
        </div>
        <div class="blank">
        </div>
        <!--ads-->
        <div style="display: none">
            <img src="/Images/ads_07.jpg" alt="" />
        </div>
    </div>
    <!--分享-->
    <div class="rightshare f_right">
        <div class="box" style="height: 354px;">
            <div class="title">
                <span><a target="_blank" href="/xcgc/">查看更多</a></span>
                <h2>
                    都是游客们回来讲的</h2>
            </div>
            <div class="cont">
                <ul class="arrowList02">
                    <%
                        for (int i = 0; i < LIST_NEWS.Count; i++)
                        {
                    %>
                    <li class="cleanFlex">
                            <span>
                                <%=LIST_NEWS[i].CREATE_DATE_TIME.Value.ToString("yyyy-MM-dd")%>
                            </span>
                            <strong class="font14">
                                <a target="_blank" title="<%=LIST_NEWS[i].NEWS_TITLE %>" href="/wanjia/<%=LIST_NEWS[i].NJL_PERSON_ID %>-youji-<%=LIST_NEWS[i].ID %>.html">
                                <%if (LIST_NEWS[i].NEWS_TITLE.Length > 8) Response.Write(LIST_NEWS[i].NEWS_TITLE.Substring(0, 8) + "..."); else Response.Write(LIST_NEWS[i].NEWS_TITLE); %></a>
                            </strong>
                        
                        <p class="cleanFlex">
                            <b class="f_right"><a target="_blank" href="/wanjia/<%=LIST_NEWS[i].NJL_PERSON_ID %>-index.html">
                                <%=GetUserByID(LIST_NEWS[i].NJL_PERSON_ID).USER_NAME%></a> </b>
                            <%
                                if (LIST_NEWS[i].NEWS_TAG != "")
                                {
                            %>
                            [<%=PageValidate.SqlText(LIST_NEWS[i].NEWS_TAG, 10)%>]
                            <%
                                }
                            %>
                        </p>
                    </li>
                    <% 
                        }
                    %>
                </ul>
            </div>
        </div>
        <!--ads-->
        <div class="blank" style="display: none">
        </div>
        <div style="display: none">
            <img src="/Images/ads_08.jpg" alt="" alt="" />
        </div>
    </div>
</div>
